<?php
namespace app\admin\validate;

class User extends Base
{
    public function sceneEdit()
    {
        return $this->only(['phone'])
            ->append('phone', 'require|unique:user');
    }

    public function sceneDel()
    {
        return $this->only(['phone'])
            ->append('phone', 'require|unique:user');
    }
}